#ifndef WARTIST_H
#define WARTIST_H

#include "../../../model/martist.h"
#include "../../../core/dtartist.h"

#include "wtable.h"

class WArtist : public WTable
{
    Q_OBJECT
    
public:
    explicit WArtist(QWidget *parent = 0);
    ~WArtist();
    void setList(QList<AbstractData *> &lArtist);
    QString getPath();
signals:
    void playArtist(QList<DtTrack *> &);
    void addArtist(QList<DtTrack *> &);
private:
    MArtist model;
    QString selection;
private slots:
    void on_tableView_clicked(const QModelIndex &index);
    void on_tableView_doubleClicked(const QModelIndex &index);
};

#endif // WARTIST_H
